Codingwars Problem 1